<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!-- 申请职位弹窗操作 -->
<link rel="stylesheet" type="text/css" href="http://localhost/hdjob/Static/Css/apply_alert.css"/>

<!-- ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝申请职位弹窗开始＝＝＝＝＝＝＝＝＝＝＝＝＝ -->
<?php if(!isset($_SESSION['uid'])||!isset($_SESSION['username'])){?>
<form action="<?php echo U('Member/Login/index');?>" method="post">
<!-- 未登陆时弹出窗开始 -->
	<div class="login_bg">
	</div>
	<div class="quickLogin_box">
		<div class="quickLogin_title">
			<h4>申请职位</h4>
			<span class="close"></span>	
		</div>
		<div class="quickLogin_content">
			<div class="login_tit">快速登录</div>
			<table cellspacing="0" cellpadding="5">
				<tr>
					<td class="name">用户名：</td>
					<td>
						<input type="text" name="username">
					</td>
				</tr>
				<tr>
					<td class="name">密  码：</td>
					<td>
						<input type="password" name="password">
					</td>
				</tr>
				<tr>
					<td class="name"></td>
					<td>
						<label for="">
						<input type="hidden" name="deal" value='1'/>
							<input type="checkbox" name="auto" value="1" class="check" checked="checked">
							       一周内自动登录
						</label>
					</td>
				</tr>
				<tr>
					<td class="name"></td>
					<td colspan="2" class="subm">
						<input type="submit" name="" value="登陆" class="sub">
						<a href="" class="pwd">忘记密码？</a>
					</td>
				</tr>
				<tr>
					<td class="name bTop"></td>
					<td class="link_lan">
						还没有账号？
						<a href="">免费注册</a>
					</td>
				</tr>
			</table>
		</div>
	</div>
</form>
<!-- 未登陆时弹出窗结束 -->
<?php  }else{ ?>
<?php if($_SESSION['rid'] == 2){?>
<!-- rid为1个人用户 -->
<!-- 必须是个人用户弹出盒子开始-->
	<div class="show_bank people_apply_bg">
	</div>
	<div class="bank people_apply_box">
		<div class="title">
			<h4>申请职位</h4>
			<span class="close"></span>
		</div>
		<div class="content">必须是个人用户才能申请职位！</div>
	</div>
<!-- 必须是个人用户弹出盒子开始 -->
<?php  }else{ ?>
<!-- 当前用户简历状态，如果是成功，显示申请职位弹窗，否则告诉用户申请失败 -->
<form action="javascript:;" method="post" name="apply_form_submit">
<!-- 登陆后弹出申请职位窗口 -->
<div class="loginCom_bg"></div>
<div class="loginCom_box">
	<div class="loginCom_box_title">
		<h4>申请职位</h4>
		<span class="close"></span>
	</div>
	<div class="loginCom_content">
		<div class="content_tip">
		</div>
		<table width="100%" cellspacing="5" border="0" align="center">
			<tr>
				<td class="name">要申请的职位：</td>
				<td valign="top" class="want_invite">
					<ul>
						
					</ul>
					
				</td>
			</tr>
			<tr>
				<td class="name">选择简历：</td>
				<td>
					<?php if(is_array($resume)):?><?php  foreach($resume as $v){ ?>
						<label for="">
							<input type="radio" name="resume1_reid" value="<?php echo $v['reid'];?>">
							<?php echo $v['resumename'];?>
						</label>
						<a href="" target="_blank">[预览]</a>
					<?php }?><?php endif;?>
				</td>
			</tr>

			<tr>
				<td class="name">其他说明：</td>
				<td>
					<textarea name="explain"></textarea>
				</td>
			</tr>
			<tr>
				<td class="name"></td>
				<td>
					<input type="hidden" name="company_uid" value="<?php echo $data['cbid'];?>">
					<input type="submit" value="申请" name="" class="apply_sub">
				</td>
			</tr>
		</table>
	</div>
</div>
</form>
<!-- 登陆后弹出申请职位窗口结束 -->
<?php if($status){?>
	<!-- 申请成功盒子 -->
	<div class="success_bg apply_success_bg">
	</div>
	<div class="success_box apply_success_box">
		<div class="success_title apply_success_box">
			<h4>申请职位</h4>
			<span class="close"></span>
		</div>
		<div class="success_content">
			<img src="http://localhost/hdjob/Static/Images/13.png" alt="" />
			<span class="success_txt">职位申请成功!</span>
			<div class="com_box">
				<a href="">查看已申请的职位</a>
				<a href="javascript:" class="close_success">申请完成</a>
			</div>
		</div>
	</div>
	<!-- 申请成功盒子结束 -->

	<!-- 添加失败弹出盒子开始-->
	<div class="show_bank people_applyerror_bg">
	</div>
	<div class="bank people_applyerror_box">
		<div class="title">
			<h4>申请职位</h4>
			<span class="close"></span>
		</div>
		<div class="content">申请失败，收已经申请过此职位</div>
	</div>
	<!-- 添加失败弹出盒子结束 -->
<?php  }else{ ?>
	<!-- 由于用户简历等不完善信息的错误窗体 -->
	<div class="show_bank people_applyerror_bg">
	</div>
	<div class="bank people_applyerror_box">
		<div class="title">
			<h4>申请职位</h4>
			<span class="close"></span>
		</div>
		<div class="content">你的简历不完整或者已经到期！</div>
	</div>
	<!-- 由于用户简历等不完善信息的错误窗体 -->
<?php }?>
<?php }?>
<?php }?>
<!-- ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝申请职位弹窗结束＝＝＝＝＝＝＝＝＝＝＝＝＝ -->